/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package charge;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author houfukude
 */
class start {

    public static void main(String[] args){
        System.out.println("请输入支付的钱:单位（元）");
        
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        
            try {
                double N = Double.parseDouble(b.readLine());
                N=1000-N*10;
        
                System.out.println("应找零:"+(int)N/10+"（元）"+(int)N%10+"（角）");
                Charge.charge((int)N,0);
                
            } catch (IOException ex) {
                Logger.getLogger(start.class.getName()).log(Level.SEVERE, null, ex);
            }
        
        }
}
